﻿<%@ Page Language="C#" MasterPageFile="../main.master" Inherits="VioletDevelopmentLaboratory.Net.Web.Configuration.VWebConfigManagerPage" %>

<script runat="server">
	protected void HostingEnvironmentDetailsView_ItemUpdated(object sender, DetailsViewUpdatedEventArgs e)
	{
		ShowAlert_DetailsView_ItemUpdated(e);
	}
</script>

<asp:Content ID="Content1" ContentPlaceHolderID="BodyContentPlaceHolder" runat="server">

	<h2>HostingEnvironment</h2>

	<div>
		<asp:ObjectDataSource ID="HostingEnvironmentDetailsViewDataSource" 
			runat="server" SelectMethod="GetHostingEnvironmentSection" 
			TypeName="VioletDevelopmentLaboratory.Net.Web.Configuration.HostingEnvironmentSectionManager" 
			UpdateMethod="Modify">
			<UpdateParameters>
				<asp:Parameter Name="idleTimeout" Type="Object" />
				<asp:Parameter Name="shadowCopyBinAssemblies" Type="Boolean" />
				<asp:Parameter Name="shutdownTimeout" Type="Object" />
			</UpdateParameters>
		</asp:ObjectDataSource>
		<fieldset>
			<asp:DetailsView ID="HostingEnvironmentDetailsView" runat="server" 
				AutoGenerateRows="False" CellPadding="5" 
				DataSourceID="HostingEnvironmentDetailsViewDataSource" DefaultMode="Edit" 
				onitemupdated="HostingEnvironmentDetailsView_ItemUpdated">
				<Fields>
					<asp:BoundField DataField="IdleTimeout" HeaderText="IdleTimeout" 
						SortExpression="IdleTimeout" />
					<asp:CheckBoxField DataField="ShadowCopyBinAssemblies" 
						HeaderText="ShadowCopyBinAssemblies" SortExpression="ShadowCopyBinAssemblies" />
					<asp:BoundField DataField="ShutdownTimeout" HeaderText="ShutdownTimeout" 
						SortExpression="ShutdownTimeout" />
					<asp:CommandField ButtonType="Button" ShowCancelButton="False" 
						ShowEditButton="True" />
				</Fields>
			</asp:DetailsView>
		</fieldset>
	</div>
</asp:Content>